import {
	createStore
} from 'vuex'

const store = createStore({
	state: {
		calendarData: null, //日历选择数据
		addr: {},
		provice: '',
		selectValues: {
			reserve_room_num: 1,
			reserve_p_num: 0
		}
	},
	mutations: {
		CalendarData: (state, CalendarData) => {
			state.calendarData = CalendarData;
		},
		Addr: (state, Addr) => {
			state.addr = Addr;
		},
		SET_REGION: (state, name) => {
			state.provice = name
		},
		SET_SELECT: (state, values) => {
			state.selectValues[values.key] = values.value
		}
	},
	actions: {

	},
	getters: {

	},
	modules: {

	}
})

export default store